package com.play.ballen.synthetic.adapter

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.play.ballen.R
import com.play.ballen.synthetic.entity.SyntheticGuessInfo

class SyntheticGuessAdapter(data: MutableList<SyntheticGuessInfo>) :
    BaseQuickAdapter<SyntheticGuessInfo, BaseViewHolder>(R.layout.fragment_synthetic, data) {

    override fun convert(holder: BaseViewHolder, item: SyntheticGuessInfo) {

        val dayAmount = holder.getView<TextView>(R.id.dayAmount)
        val guessCount = holder.getView<TextView>(R.id.guessCount)

        item.run {
            dayAmount.text = amount
            guessCount.text = count

        }
    }

}